<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>VUE绑定事件-键盘按键修饰符</title>
        <script type="text/javascript" src="https://unpkg.com/vue/dist/vue.js"></script>
    </head>
    <body>
        <div id="app">
            关键词：<input name="keyWord" @keyup.alt.67="clear" v-model="keyWord"/><br/>
            <span>{{keyWord}}</span>
        </div>
    </body>
    <script type="text/javascript">
        var vueObj = new Vue({
            el: '#app',
            data: {
                keyWord: ""
            },
            methods: {
                clear: function() {
                    console.log("触发了清除的方法");
                    this.keyWord = "";
                }
            }
        });
    </script>
</html>